package sanshui.system.trade.service;

import sanshui.system.trade.common.CommonResponse;
import sanshui.system.trade.db.entity.TradeHisOpPos;
import sanshui.system.trade.factory.trade.strategy.StrategyCallType;
import sanshui.system.trade.factory.trade.strategy.StrategyResult;

import java.math.BigDecimal;

public interface IBuySellService {
    CommonResponse<Boolean> operation(String accId, BigDecimal price, BigDecimal num, String code, StrategyCallType operationType);
    CommonResponse<Boolean> operationAsync(String accId, BigDecimal price, BigDecimal num, String code, StrategyResult endStrategyCall);

    boolean sell(StrategyResult endStrategyCall);
    boolean buy(StrategyResult endStrategyCall);
}
